package com.zjj.day2.test3;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
public class Test {
    public static void main(String[] args) {
        Person person1 = new Person("A",22,true,null);
        Person person2 = new Person("B",32,true, null);
        Person person3 = new Person("C",22,false,null);
        Person person4 = new Person("D",22,false,null);
        person1.marry(person2);
        person1.marry(person3);
        person2.marry(person3);
        person2.marry(person4);
    }
}
